{hasDocRight document=$page module="website" rule="edit"}
<h1>{t}Edit page{/t} "{$page->getLabel()|truncate:40:"...":true}"</h1>
<div class="greenBar">
    <table class="form">
        {t assignTo=iconTitle}Status - Click to publish/unpublish the page. An unpublished page is not visible online, but can still be previewed.{/t}
        <tr><td>{icon name='help.png' class="icon16 toolTip" title="$iconTitle"} {t}Page status{/t} :&nbsp;</td><td><a href="javascript:void(0);" class="smallGreyButton" onclick="switchPageStatus({$page->getUniqueId()}, '{$page->getLang()}');">{if $page->getPublicationStatus() == "PUBLISHED"}{icon name="status/PUBLISHED.png" title="publiée"} {t}published{/t}{else}{icon name="status/DRAFT.png" title="Non publiée"} {t}unpublished{/t}{/if}</a></td>{if $page->getPublicationStatus() == "PUBLISHED"}<td>&nbsp;<a href="http://{$page->getWebsiteUrl()}{$page->getUrl()}" target="_blank" class="smallGreyButton"> {t}View{/t}</a></td>{/if}</tr>
        <!--{if $page->hasRevisions()} <a href="javascript:void(0);" onclick="showAllRevisions();">{icon name="bullet_arrow_down.png" title="Voir les révisions"}</a>{/if}-->
    </table>
</div>
<!--
	<div id="revisionBlock">
	{if count($revisions) >= 1}
	Révisions : <select name="revisions" id="revisions">		
		{foreach from=$revisions key=k item=rev}
		<option value="{$k+1}">{date date=$rev->getModificationDate()}{if $rev->getAuthor() != ""} par {$rev->getAuthor()}{/if}</option>
		{/foreach}
	</select><input type="button" value="Visualiser" onclick="previewRevision({$page->getUniqueId()},'{$page->getLang()}')" class="button"/> <input type="button" value="Restaurer" onclick="loadRevision({$page->getUniqueId()},'{$page->getLang()}')" class="button"/>
	{/if}
	</div>
-->
<div id="moduleTabs">
     <ul>
         {hasRight rule="website_TabPageStructure website_BlockEdit website_ValidatePage"}
         <li><a href="{$URL_RELATIVE}/bo/#{$page->getEditUrl($page->getLang(),'tabPageStructure')}" title="{t}Page structure{/t}" rel="history" {if $tabName == "tabPageStructure"}class="selected"{/if}><span>{t}Structure{/t}</span></a></li>
         {/hasRight}
         {hasRight rule=website_TabPageProperties}
         <li><a href="{$URL_RELATIVE}/bo/#{$page->getEditUrl($page->getLang(),'tabPageProperties')}" title="{t}Page properties{/t}" rel="history" {if $tabName == "tabPageProperties"}class="selected"{/if}><span>{t}Properties{/t}</span></a></li>
     	 {/hasRight}
     </ul>
</div>
<div id="ajaxTabLoader"><div id="loaderTabPic">{backend_image file="ajax-loader-big.gif"}</div></div>
<div id="tabContent">
	{eval var=$tab}
</div>
{/hasDocRight}
